home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-05-13 | 1.6 KB | 37 lines | [TEXT/KAHL] |
- // Bolo code (C) Stuart Cheshire <cheshire@cs.stanford.edu> 1987-1995.
- // All rights reserved. This code is owned by Stuart Cheshire and is donated
- // free of charge for non-commercial use. You may not use this code in any
- // product sold for commercial profit, except shareware priced at $25 or less.
-
- BrainFrame is a tool for programmers writing Brains, to allow them to run
- their programs as applications with source level debugging, instead of as
- CODE resources, which are hard to debug.
-
- To use BrainFrame, include your Brain's source file(s) in the project. You
- should also include any resource files you use. (Remove Standard Autopilot.c
- and Standard Autopilot.π.rsrc first).
-
- Add the following lines at the top of your main C file (the one that defines
- the routine "main"):
-
- #if !__option(a4_globals)
- #define main BrainMain
- BoloBrain BrainMain;
- #endif
-
- The way this works, is if the code is being compiled as an application instead
- of as a CODE resource, then it won't be using A4 globals, and your routine
- "main" will be redefined as the name "BrainMain" so that the BrainFrame
- application can call it as a subroutine.
-
- You can then run BrainFrame as an application, connect to a running Bolo tank,
- and control it as a normal Brain would.
-
- WARNING: THIS IS A DEBUGGING TOOL FOR BRAIN PROGRAMMERS ONLY.
-
- The Bolo Brain interface is due for a major overhaul, and this application
- interface will change. Backwards compatibility with old BBRN CODE resource
- files will be preserved, but this application interface will not. You can
- use this for testing and development, but please don't release any public
- applications that use this interface, or you'll have unhappy users.
-